package com.zzdz.system.entity;

import java.util.Date;

import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 字典-子表 Entity
 *
 * @author Zzdz
 * @date 2020-05-21 14:13:34
 */
@Data
@TableName("t_dict_item")
public class DictItem {

    /**
     * item主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * dict主键
     */
    @TableField("dict_id")
    private Long dictId;

    /**
     * 值
     */
    @TableField("value")
    private String value;

    /**
     * 
     */
    @TableField("lable")
    private String lable;

    /**
     * 类型
     */
    @TableField("type")
    private String type;

    /**
     * 描述
     */
    @TableField("description")
    private String description;

    /**
     * 备注
     */
    @TableField("remarks")
    private String remarks;

    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;

    /**
     * 创建时间 
     */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

}
